﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="adminUsuarios.aspx.vb" Inherits="GestionHorarios.adminUsuarios" %>


<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Gestión de Horarios v1.0</title>
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    
    <style type="text/css">   
         
        #Expediente
        {
            width: 92px;
        }
        #Select1
        {
            width: 94px;
        }
        #titulación
        {
            width: 88px;
        }
        #titulación0
        {
            width: 88px;
        }
        #centro
        {
            width: 165px;
        }
   
        #Text1
        {
            width: 320px;
        }
        .separador
        {
            width: 10px;
        }

        .style75
        {
            width: 266px;
        }
        .style76
        {
            width: 192px;
        }

        .style77
        {
            width: 12px;
        }
        .style78
        {
            width: 12px;
            height: 23px;
        }
        .style79
        {
            height: 23px;
        }

        </style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body class="body">
<form id="form1" runat="server" class="body">
    <div align="center" style="text-align: left">
    
        <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </cc1:ToolkitScriptManager>
        
    
    
    <asp:HiddenField ID="HFError" runat="server" />
      
        <asp:SqlDataSource ID="SqlDataGestionUsuarios" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SqlServerGESTION_ACADEMICA_INTEGRADA %>" 
            SelectCommand="SELECT * FROM [USUARIOS]"></asp:SqlDataSource>
      
        <cc1:ModalPopupExtender ID="HFError_ModalPopupExtender" runat="server" 
            BackgroundCssClass="modalBackground" 
            DynamicServicePath="" Enabled="True" 
            PopupControlID="PnlError" TargetControlID="HFError" OkControlID="BtnErrorOk">
        </cc1:ModalPopupExtender>
                
                
                              
    </div>
    
    
      <table width="1000" border="0" align="center" cellpadding="3" cellspacing="0">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" 
                    class="tablaCabeceraAplicacion">
              <tr>
                  <td width="600px" class="tablaCabeceraAplicacion">
                      &nbsp;Gestión de Horarios (Administración)</td>
                  <td><div align="right"><span class="fundacionPabloVI">Universidad 
                      Pontificia de Salamanca<br />
                      <i>Campus de Madrid</i></span></div></td>
              </tr>
              </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="5" 
                    class="tablaCabecera2Aplicacion">
              <tr>
                <td width="150px" align="left">
                    <asp:Label ID="LblUsuarios" runat="server" Font-Bold="True" 
                        Font-Names="Verdana" Font-Size="Small" 
                        Text="Gestión de Usuarios" CssClass="letraPequena" Width="150px"></asp:Label>
                  </td>
                <td width="140px" align="left" class="separador">
                    &nbsp;</td>
                                
                <td width="150px" align="left">
                    <asp:LinkButton ID="LBGestionGrupos" runat="server" Font-Names="Verdana" 
                        Font-Size="Small" 
                        PostBackUrl="~/web/codigo/adminGrupos.aspx" 
                        CssClass="letraPequenaSubrayadaSinBold" Width="190px">Gestión de Grupos</asp:LinkButton>
                                </td>  
                <td width="140px" align="left" class="separador">
                    &nbsp;</td>
                                
                <td width="150px" align="left">
                    <asp:LinkButton ID="LBConfiguracion" runat="server" Font-Names="Verdana" 
                        Font-Size="Small" 
                        PostBackUrl="~/web/codigo/adminConfiguracion.aspx" 
                        CssClass="letraPequenaSubrayadaSinBold" Width="190px">Gestión de Configuración</asp:LinkButton>
                                </td>
                <td width="140px" align="left" class="separador">
                    &nbsp;</td>
                <td width="150px" align="left">
                    <asp:LinkButton ID="LBHorariosTeoria" runat="server" Font-Names="Verdana" 
                        Font-Size="Small" 
                        PostBackUrl="~/web/codigo/gestionHorariosTeoria.aspx" 
                        CssClass="letraPequenaSubrayadaSinBold" Width="140px">Gestión de Horarios</asp:LinkButton>
                                </td>
                <td align="left" class="separador">
                    &nbsp;</td>
                <td align="left" class="tablaCabecera2Aplicacion" width="140px">
                    &nbsp;</td>
                <td align="left" class="tablaCabecera2Aplicacion">
                    &nbsp;</td>
                <td align="center" class="tablaCabecera2Aplicacion" width="50px">
                    <asp:LinkButton ID="LBSalir" runat="server" Font-Names="Verdana" 
                        Font-Size="Small" 
                        style="font-size: small; font-weight: 700; text-align: center" 
                        CssClass="letraPequenaSubrayada">SALIR</asp:LinkButton>
                                </td>
              </tr>
            </table></td>
          </tr>
          
          <tr>
            <td>      
                <asp:UpdatePanel ID="UPnlBusquedasHorariosTeoria" runat="server"><ContentTemplate>
                    <table width="900" border="1" cellpadding="5" cellspacing="0"  
                                                        bordercolor="#0066CC" style="width:100%;" 
                        class="tablaFondo"><tr>
                            <td height="20" bordercolor="#0066CC" class="tablaCabecera3Aplicacion"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
                            <td class="tablaCabecera3Aplicacion">Seleccione usuario para editarlo:</td></tr></table></td></tr>
                                                            
                                                            
                                               <tr>
                                                    <td height="30" bordercolor="#0033FF" class="bordeTablas">
                                            <table style="width:100%;" class="alto25px"><tr>
                                                   
                                                    <td class="separador">&nbsp;</td>
                                                    <td>
                                                        <table style="width:100%;">
                                                            <tr>
                                                                <td>
                                                                    <table width="100%" style="margin-bottom: 17px">
                                                                        <tr>
                                                                            <td align="left" class="style78">
                                                                                &nbsp;</td>
                                                                            <td width="80px" class="style79">
                                                                                &nbsp;</td>
                                                                            <tr class="bordeTablas">
                                                                                <td align="left" class="style77">
                                                                                    <asp:Label ID="LblTipoUsuario0" runat="server" CssClass="derecha" 
                                                                                        Text="Usuario:"></asp:Label>
                                                                                </td>
                                                                                <td align="left">
                                                                                    &nbsp;&nbsp;<asp:DropDownList ID="DDLUsuario" runat="server" 
                                                                                        AutoPostBack="True" DataSourceID="SqlDataGestionUsuarios" DataTextField="NIF" 
                                                                                        DataValueField="ID_USUARIO" Width="160px">
                                                                                    </asp:DropDownList>
                                                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                                    <asp:Button ID="BtnDesbloquear" runat="server" Height="20px" Text="Desbloquear" />
                                                                                </td>
                                                                                <td align="left" class="separador">
                                                                                    &nbsp;</td>
                                                                                <td class="derecha" width="95px">
                                                                                    &nbsp;</td>
                                                                            </tr>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td class="derecha" width="60px">&nbsp;</td>
                                               </tr>
                                            </table>
                                                                            
                              </tr>                            
                                                            
                          
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                                                                    
                                                                    
                <asp:UpdatePanel ID="UPnlAltaUsuario" runat="server">
                    <ContentTemplate>
                        <table style="height: 5px; width: 100%;">
                        <tr>
                            <td>
                                <br />
                                <br />
                            </td>
                        </tr>
                        </table>
                        
                        <table width="900" border="1" cellpadding="5" cellspacing="0" bordercolor="#0066CC" style="width:100%;" class="tablaFondo">

                        <tr>
                            <td height="20" bordercolor="#0066CC"  class="tablaCabecera3Aplicacion">
                                <table id="tblTituloAlta" visible="False" width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td class="tablaCabecera3Aplicacion">Datos de Usuario</td>
                                        <td class="derecha">&nbsp;</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" bordercolor="#0033FF" class="tablaFondo">
                                <table style="width:100%;">
                                    <tr>
                                        <td>    

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>    
                                            <table width="100%">
                                                <tr class="bordeTablas">
                                                    <td align="left" class="separador">
                                                        &nbsp;</td>
                                                    <td height="25px" width="70px">Nombre:</td>
                                                    <td align="left" width="155"><asp:TextBox ID="txtNombre" runat="server"></asp:TextBox></td>
                                                    <td height="25px" width="70px">Apellidos:</td>
                                                    <td align="left" width="155"><asp:TextBox ID="txtApellidos" runat="server"></asp:TextBox></td>
                                                    <td height="25px" width="70px">NIF:</td>
                                                    <td align="left" width="155"><asp:TextBox ID="txtNif" runat="server"></asp:TextBox></td>
                                                    <td align="left" class="separador">&nbsp;</td>
                                                </tr>
                                                <tr class="bordeTablas">
                                                    <td align="left" class="separador">
                                                        &nbsp;</td>
                                                    <td height="25px" width="70px">Email:</td>
                                                    <td align="left" width="155"><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
                                                    <td height="25px" width="70px">Telefono:</td>
                                                    <td align="left" width="155"><asp:TextBox ID="txtTelefono" runat="server"></asp:TextBox></td>
                                                    <td height="25px" width="70px">Constraseña:</td>
                                                    <td align="left" width="155"><asp:TextBox ID="txtPassword" runat="server"></asp:TextBox></td>
                                                    <td align="left" class="separador">&nbsp;</td>
                                                </tr>                                                
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>    
                                            <table width="100%">
                                                <tr class="bordeTablas">
                                                    
                                                    <td align="left" class="style76">&nbsp;</td>
                                                    <td align="left" class="style75">&nbsp;&nbsp;<br />
                                                        <asp:CheckBoxList ID="CheckBoxList1" runat="server">
                                                            <asp:ListItem>Administrador</asp:ListItem>
                                                            <asp:ListItem>Consulta Horario Teoria</asp:ListItem>
                                                            <asp:ListItem>Modificar Horario Teoria</asp:ListItem>
                                                            <asp:ListItem>Consulta Horario Laboratorios</asp:ListItem>
                                                            <asp:ListItem>Modificar Horario Laboratorios</asp:ListItem>
                                                            <asp:ListItem>Consulta Horario Tutoria</asp:ListItem>
                                                            <asp:ListItem>Modificación Horario Tutoria</asp:ListItem>
                                                        </asp:CheckBoxList>
                                                        <br />
                                                        <br />
                                                    </td>
                                                    <td align="left" class="separador">&nbsp;</td>
                                                    <td class="derecha" width="95px">
                                                        <asp:Button ID="btbInsertar" runat="server" Text="Insertar" 
                                                            style="height: 26px" />
                                                    </td>
                                                    </tr>
                                               </table>
                                            </td>
                                    </tr>                                    
                                    <tr>
                                        <td>&nbsp;</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                  </table>
              </ContentTemplate>
          </asp:UpdatePanel>                                                                                       
                <br />
                <br />
                                                                    
                                                                    
       </td>
    </tr>
</table>



               
    <%----------------------------------------------------------------------------------------
                                FICHA DE LISTADO DE ALUMNOS
    ---------------------------------------------------------------------------------------------%>
        
                <asp:Panel ID="PnlError" runat="server" CssClass="ventanaError" Width="450px">
            
                <asp:UpdatePanel ID="UPnlError" runat="server">
                <ContentTemplate>
               
                    <table width="100%">
                        <tr>
                            <td class="tituloError">
                                Error</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="LblTextoError" runat="server">Se ha producido algún error. Por 
                                favor, consulte los detalles y si fuera necesario póngase en contacto con el 
                                responsable de la aplicación.</asp:Label>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" class="alineacionDerecha">
                                <asp:LinkButton ID="LBErrorDetalles" runat="server">Mostar detalles</asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:TextBox ID="TBErrorDetalles" runat="server" TextMode="MultiLine" 
                                    Visible="False" Width="100%" ReadOnly="True" Rows="10"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                &nbsp;</td>
                        </tr>
                    </table>
                
                </ContentTemplate>
                </asp:UpdatePanel>
                
                
                
                <div style="text-align:right;">
                    &nbsp;<asp:Button ID="BtnErrorOk" runat="server" Text="Aceptar" />
                </div>
            </asp:Panel>
            
    
    
    
        </form> 
    </body>
</html>